import 'package:gameplay_flutter/generated/json/base/json_field.dart';
import 'package:gameplay_flutter/generated/json/file_info_entity.g.dart';
import 'dart:convert';
export 'package:gameplay_flutter/generated/json/file_info_entity.g.dart';

@JsonSerializable()
class FileInfoEntity {
  late int id = 0;
  late int dynamicId = 0;
  late String url = '';
  late int type = 0;
  late int playCount = 0;
  dynamic createTime;
  dynamic updateTime;
  dynamic status;
  late int width = 0;
  late int height = 0;
  late int duration = 0;
  late String snapUrl = '';
  late String videoUrl = '';
  late String gifUrl = '';
  late String videoId = '';
  dynamic playAuth;
  dynamic contentRiskResult;
  dynamic riskType;
  late String description = '';

  FileInfoEntity();

  factory FileInfoEntity.fromJson(Map<String, dynamic> json) => $FileInfoEntityFromJson(json);

  Map<String, dynamic> toJson() => $FileInfoEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
